import $api from './index.js'

//  data{ limit:number , page: number ,a:string}
//获取表格信息(用于表格翻页)
export const getTableData = async ( data ) =>{
    const res = await $api.post('/findUserInfo', data)
    return res
}
//获取表格所有用户信息
export const getAllTableData = async ( data ) =>{
    const res = await $api.post('/findAllUserInfo', data)
    return res
}

//增加表格信息
export const addTableData = async ( data ) =>{
    const res = await $api.post('/addUserInfo', data)
    return res
}
//删除表格信息
export const delTableData = async ( data ) =>{
    const res = await $api.post('/delUserInfo', data)
    return res
}
//编辑表单数据
export const UpdateTableData = async ( data ) =>{
    const res = await $api.post('/updateUserInfo', data)
    return res
}
//搜索框搜索
export const inputSearch = async ( data ) =>{
    const res = await $api.post('/Search', data)
    return res
}